<?php

/**
 * role components.
 *
 * @package    maximous
 * @subpackage role
 * @author     Mina.Gerges.Wadea
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class roleComponents extends sfComponents
{

    public function executeShowRoles()
    {
        //get all rols
        $roles = RoleTable::getInstance()->getEditableRols()->execute();
        $forms = array();
        foreach ($roles as $role)
        {
            $forms[] = new RoleForm($role);
        }

        //for view
        $this->forms = $forms;
    }

}